package com.csnf.controller;


import com.csnf.service.BuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BuyController {

    @Autowired
    BuyService buyService;

    @RequestMapping("/buy")
    public String buy(String userId, String productCode, int count){
        buyService.buy(userId,productCode,count);

        return "success";
    }
}
